/**
 * 是否微前端
 */
export const isMicroApp = () => {
  return window.__MICRO_APP_ENVIRONMENT__;
};



/**
 * 子应用控制主应用路由
 */
export const microAppMainRouter = (routerFun, pathObj) => {
  const baseRouter = window.microApp.router.getBaseAppRouter();
  baseRouter[routerFun](pathObj);
};

